﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Web;
using Model;
using DAL;


/// <summary>
///B_UserPlan 的摘要说明
/// </summary>

namespace BLL
{ 
    public class B_UserPlan
    {
        private DAL.D_userPlan dal = new DAL.D_userPlan();
        /// <summary>
        /// 添加一条记录
        /// </summary>
        /// <param name="model"></param>
        public int AddUserPlan(M_userPlan model)
        {
            return dal.Add(model);
        }
        public int UpdateUserPlan(M_userPlan model)
        {
            return dal.Update(model);
        }

        public int DeleteUserPlan(int id)
        {
            return dal.Delete(id);
        }

        public int UpdateUserPlanM(string strManagerRemark, string strUserRemark, string strUser, DateTime dt)
        {
            return dal.UpdateM(strManagerRemark, strUserRemark, strUser, dt);
        }

        public IList<M_userPlan> GetList(string strCreater)
        {
            return dal.GetIList(strCreater);
        }
        public IList<M_userPlan> GetIListForManager(string strCreater)
        {
            return dal.GetIListForManager(strCreater);
        }

        public IList<M_userPlan> GetListForManager(string strCreater,DateTime dt)
        {
            return dal.GetListForManager(strCreater, dt);
        }
        
        public IList<M_userPlan> GetList(string strCreater, DateTime dt)
        {
            return dal.GetIList(strCreater, dt);
        }
        public M_userPlan GetMode(int Id)
        {
            return dal.GetModel(Id);
        }

        public IList<string> GetRemark(string strCreater, DateTime dt)
        {
            return dal.GetRemark(strCreater, dt);
        }
    }
}